import request from '../utils/request'


//获取商品列表
export function getGoodsList(params) {
  return request({
    method: 'get',
    url: '/api/PCApplet/GetCommodityList_Admin',
    params,
  })
}

//新增商品
export function addNewGoods(data) {
  return request({
    method: 'post',
    url: '/api/PCApplet/AddCommodity_Admin',
    data,
  })
}

//修改商品
export function updateGoods(data) {
  return request({
    method: 'post',
    url: '/api/PCApplet/UpdateCommodity_Admin',
    data,
  })
}

//删除商品
export function delectGoods(data) {
  return request({
    method: 'post',
    url: '/api/PCApplet/DeleteCommodity_Admin',
    data
  })
}
